﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using QLTuyenXe.DAL;
using System.Data;
using System.Collections;

namespace QLTuyenXe.DAO
{
    class CHUCVU
    {
        MyConnectUnit myConnU = new MyConnectUnit();
        int id;
        string chucvu;

        public int Id
        {
            get { return id; }
            set { id = value; }
        }


        public string Chucvu
        {
            get { return chucvu; }
            set { chucvu = value; }
        }
        //ArrayList hopDongs = new ArrayList();
       /* private void GetHopDongs()
        {
            DataTable tb = myConnU.Select("HOP_DONG", "*", "chuvu_id=" + id);
            foreach (DataRow r in tb.Rows)
            {
                HOPDONG hd = new HOPDONG();
                hd.Id = int.Parse(r["id"].ToString());
                hd.DonviA = r["donviA"].ToString();
                hd.DaidienA = r["daidienA"].ToString();
                hd.ChuvuA = r["chucvuA"].ToString();
                hd.DiachiA = r["diachiA"].ToString();
                hd.DienthoaiA = int.Parse(r["dienthoaiA"].ToString());
                hd.DonviB = r["donviB"].ToString();
                hd.DaidienB = r["daidienB"].ToString();
                hd.ChucvuB = r["chucvuB"].ToString();
                hd.DiachiB = r["diachiB"].ToString();
                //hd.DienthoaiB = r["dienthoaiB"].ToString();
                hd.Soluong = int.Parse(r["soluong"].ToString());
                hd.Giathuexe_id = int.Parse(r["giathuexe_id"].ToString());
                hd.Thoigianthue = DateTime.Parse(r["thoigianthue"].ToString());
                hd.Thoigiantra = DateTime.Parse(r["thoigiantra"].ToString());
                hd.Chucvu_id = id;
                hopDongs.Add(hd);
            }
        }*/
    }
}